package com.bdqn.easybuy1.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetail implements Serializable {
    // 实现序列化接口
    public static final long serialVersionUID = 4265461615984913L;

    /**
     * ID
     */
    private Integer id;
    /**
     * 订单ID
     */
    private Integer orderId;
    /**
     * 数量
     */
    private Integer quantity;
    /**
     * 单价
     */
    private Float cost;
    /**
     * 商品id
     */
    private Integer productId;
    /**
     * 商品实体
     */
    private Product product;
}
